import Layout from '@/pages/public/layout' // 公共部分

const analysis = [{
  path: '/data/analysis',
  component: Layout,
  meta: {
    permission: 'data.analysis'
  },
  children: [{
    path: 'student',
    component: () => import('@/pages/data/analysis/student/index.vue'),
    meta: {
      title: '用户分析',
      permission: 'data.analysis.student'
    }
  }, {
    path: 'course',
    component: () => import('@/pages/data/analysis/course/index.vue'),
    meta: {
      title: '课程分析',
      permission: 'data.analysis.course'
    }
  }, {
    path: ':id/course',
    component: () => import('@/pages/data/analysis/course/details.vue'),
    meta: {
      title: '课程详情分析',
      permission: 'data.analysis.course'
    }
  }, {
    path: 'transaction',
    component: () => import('@/pages/data/analysis/transaction/index.vue'),
    meta: {
      title: '交易分析',
      permission: 'data.analysis.transaction'
    }
  }, {
    path: 'visit',
    component: () => import('@/pages/data/analysis/visit/index.vue'),
    meta: {
      title: '流量分析',
      permission: 'data.analysis.visit'
    }
  }]
}]

export default analysis
